package speed;

public class ConstractUse {
	public static void main(String[] args) {
		person1 person01 = new person1("小斌", 18);
		person1 person02 = new person1("小小");
		System.out.println(person01.name+"\n"+person01.age);
		System.out.println(person02.name+"\n"+person02.age);		
		 
	}

}

class person1{
	String name;
	int age;
	public person1(String name) {
		super();
		this.name = name;
	}
	public person1(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	
}